package com.chb.app.factory;

import com.chb.app.feign.UserFeign;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author: 陈海彬
 * @date: Created in 2024/1/2 16:44
 * @description:
 * @modified By:
 * @version:
 */
@Slf4j
@Component
public class UserFallbackFactory implements FallbackFactory<UserFeign> {
    @Override
    public UserFeign create(Throwable throwable) {
        log.error("系统用户微服务出现异常" + throwable.getMessage());
        return null;
    }
}